package ltd.dujiabao.capability.adapter.driven.persistence.capmng;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


/**
 * @author : DuJiabao
 * @Project : ddd-capability
 * @Time : 2024/4/7 21:01
 * @Desc :
 */
@Repository
public interface CapabilityDAO extends JpaRepository<CapabilityDO, Long> {

    boolean existsAllByDevModelIdAndHardwareVerAndFirmwareVer(String devModelId, String hardwareVer, String firmwareVer);

    List<CapabilityDO> findAllByDevModelIdAndHardwareVerAndFirmwareVer(String devModelId, String hardwareVer, String firmwareVer);
}
